
/**
------------------------------------------------------------
* NGUYEN SY BACH
* bit.mta@gmail.com
* Hoc Vien Ky Thuat Quan Su
------------------------------------------------------------
***	header bien doi bang cpu
------------------------------------------------------------
*/

#ifndef CPU_TRANSFOR_H
#define CPU_TRANSFOR_H

#pragma once
#include "nsb_helper.h"

inline void NearestNeighbor_hst(const uchar *inPtr, int strideIn,
	int channels, int x, int y,
	uchar *outPtr, int strideOut, double u, double v);


#ifdef __cplusplus
extern "C"
{
#endif


	void TransformWithCPU(BYTE *&outPtr, int u0, int v0,
		int outWidth, int outHeight, int channels, const double *g,
		const BYTE *inPtr, int x0, int y0,
		int inWidth, int inHeight, int mode);


#ifdef __cplusplus
}
#endif
#endif